import type {BasePageReq} from "@/interfaces/base";

export interface BookArea {
    label:string;
    id:number;
    deskCount:number;
}

export interface BookDate {
    date:string;
    week:string;
    isSelect:boolean;
}
export interface BookTime {
    timeQuantum:string;
    id:number;
    isSelect:boolean;
}

export interface Book {
    date:BookDate;
    timeList:number[];
    area:BookArea;
}
export interface DeskType {
    deskCount:number;
}

export interface BookResult extends Book{
    status:number;
    creatTime:string;
}

export interface CreateRecordReqVO{
    userId:string;
    areaId:number;
    deskNum:number;
    seatNum:number;
    bookDate:string;
    bookTimes:number[];
}



export interface PageRecordRespVO{
    id:string;
    username:string;
    createTime:string;
    updateTime:string;
    status:number;
    detailList:detailList[];
}

export interface detailList{
    label:string;
    deskNum:number;
    seatNum:number;
    bookDate:string;
    timeQuantum:string;
}

export interface PageRecordReqVO extends BasePageReq{
    username:string;
    status?:number;
}

export interface SeatStatusReqVO{
    areaId:number;
    bookDate:string;
    bookTimes:number[];
}

export interface UserBookStatusReqVO{
    id:string;
    bookDate:string;
}

export interface BookStatus{
    bookTimeQuantumId:number;
}


export interface CancelBookReqVO{
    id:string;
    status:number;
}
